package com.hspedu.qqcommon;

import java.io.Serializable;

/**
 * @author 谷其昊
 * @version 1.0
 * @date 2022/3/16
 * @time 21:31
 * 表示客户端和服务端通信时的消息对象
 */
public class Message implements Serializable {

    private static final long serialVersionUID = 1L;
    /**
     * 发送者
     */
    private String sender;

    /**
     * 接收者
     */
    private String getter;

    /**
     * 发送的消息内容
     */
    private String content;

    /**
     * 消息发送时间
     */
    private String sendTime;

    /**
     * 发送文件时可以将字节数组
     * 封装为message对象
     */
    private byte[] binaryContent;

    /**
     * 发送的消息类型
     */
    private String messageType;

    /**
     * 发文件时的目标文件路径
     */
    private String destFilePath;

    public String getDestFilePath() {
        return destFilePath;
    }

    public void setDestFilePath(String destFilePath) {
        this.destFilePath = destFilePath;
    }

    public String getMessageType() {
        return messageType;
    }

    public void setMessageType(String messageType) {
        this.messageType = messageType;
    }

    public String getSender() {
        return sender;
    }

    public void setSender(String sender) {
        this.sender = sender;
    }

    public String getGetter() {
        return getter;
    }

    public byte[] getBinaryContent() {
        return binaryContent;
    }

    public void setBinaryContent(byte[] binaryContent) {
        this.binaryContent = binaryContent;
    }

    public void setGetter(String getter) {
        this.getter = getter;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getSendTime() {
        return sendTime;
    }

    public void setSendTime(String sendTime) {
        this.sendTime = sendTime;
    }
}
